import { BaseModule } from "../base/BaseModule";
import BaseData from "./BaseData";
import { IViewParams } from "./BaseView";
import { IBaseCtrl } from "./IBaseCtrl";

export default class BaseCtrl extends BaseModule implements IBaseCtrl {
    data: BaseData = null;
    /** 初始化 */
    init() { }
    /** 当前模块的ui被打开前，用于准备一些数据 */
    onUIOpenBefor(params: IViewParams,isNewOpen: boolean): void { }
    /** 当前模块的ui被打开 */
    onUIOpen(params: IViewParams,isNewOpen: boolean): void { }
    /** 当前模块的ui被关闭 */
    onUIClose() { }
    /** 销毁回调 */
    onDestroy() { }
}

